position_signal = out.yout{2}.Values;
position_result = out.yout{1}.Values;

result_x=position_result.Data(:,1);
result_y=position_result.Data(:,2);
result_z=-position_result.Data(:,3);

signal_x=position_signal.Signal_x.Data;
signal_y=position_signal.Signal_y.Data;
signal_z=-position_signal.signal3.Data;

plot3(signal_x,signal_y,signal_z,'r',result_x,result_y,result_z,'b');
% plot3(result_x,result_y,result_z);

xlabel('x')
ylabel('y')
zlabel('z')
grid on